home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d16
/
vbdos.arc
/
VBDOS.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1991-07-11
|
12KB
|
338 lines
Form1
File DLL Demo
Form1
x_Disk
&Disk
a_DiskSize
&Disk Size
b_DiskSpace
&Free Disk Space
x_ExitMNU
E&xit
x_FileMNU
&FileStat
c_Hidden
&Hidden File
d_ReadOnly
&Read Only
e_Sysfile
&System File
f_Archfile
&Archive File
g_GetFTime
&File Creation Time
h_LocateFile
&Locate a File
x_modfile
&ModFile
i_ModHidden
Set &Hidden Attribute
j_ModRO
Set &Read Only Attribute
k_ModSystem
Set &System Attribute
l_ModArchive
Set &Archive Attribute
m_SetTime
Set &File Time
GetProfileString
Keyname
DefaultValB
RetBuf
DoPrinterSetup
hwnd)
DriverName
PortName{
PSetupMNU_Click
RetStr
Form1A
ExitMNU_Click
FileMNU_ClickY
Form_Click
flase
false
RetStrSize
GetDisk
DiskSize
diskno
test_Click
diskspac
DiskSpace_Click`
endcase
upcase
fname
IsHiddg
IsHidde
IsFileHidden
GetAvailDiskx
IsFileRO
DiskSize_Click
Hidden_Click]
GetDisksize
IsFileArchive0
IsFileSystem:
IsFileReadOnly-
testfileI
ReadOnly_Click!
Sysfile_Click
Archfile_ClickP
HideFile_Click
SetFileSystem
plusmin
SetFileHidden
attrib;
wishX
attrx
ModHidden_Click
ModRO_Clickv
SetFileRO
ModSystem_Click
ModArchive_ClickQ
SetFileArchive
GetFileDate
filetime
GetFTime_Click
GetFileTime
ftime
retval
SetTime_Click
etFileTime
FunctionetFileTime
SetFileTimek
newtime
newdate
Enter
completeQ
pathE
filename
modfile_Click
Disk_Click
Aspaced
AvailSpace!
TotalSpace
Locate_Click
FileFind
searchpath
fullname
result
FindFile
m_SetTime_Click
f_Archfile_Click
a_DiskSize_Click
b_DiskSpace_Click
g_GetFTime_Click
c_Hidden_Click
h_LocateFile_Click
l_ModArchive_Click
i_ModHidden_Clickh
j_ModRO_Click
k_ModSystem_Click
d_ReadOnly_Click
e_Sysfile_Clickz
x_ExitMNU_Click
xmodfile_Click
x_Disk_Click
rSpace
AvailDiskb
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
diskstat.dll
Declare Function FindFile Lib "diskstat.dll" (ByVal fname As String, ByVal searchpath As String, ByVal fullname As String) As Integer
m_SetTime_Click
Which file do you wish to change?"
Select File"
C:\AUTOEXEC.BAT"
The new file date/time must be *exactly* formatted as "mm/dd/
y hh:mm:ss"
Please enter the date and time."
Enter Date/Time"
07/04/1991 12:12:12"
has been modified."
Invalid Date Format.
Path or File not found."
Unable to Access file.
f_Archfile_Click
IsFileArchive takes one parameter, a string with the full path namet
of the file.a
Which file do you wish to check?
Select File"
C:\AUTOEXEC.BAT"
is marked Archive."
is not marked Archive."
not found."
Path not found."
Access to
denied.
Unable to Access file.
a_DiskSize_Click
GetDiskSize takes one parameter, the sequential number of the
disk drive to check (A=1, B=2, C=3, etc.) A value of 0 checks the
default drive.c
Which drive do you wish to check?"
Select Drive
default"
ABCDEFGHIJKLMNOPQRSTUVWXYZ
default"
Invalid Drive Specified.
There are
bytes of total space on drive "
b_DiskSpace_Click
GetAvailDisk takes one parameter, the sequential number of the
disk drive to check (A=1, B=2, C=3, etc.) A value of 0 checks
the default drive.k
Which drive do you wish to check?"
Select Drive
default"
ABCDEFGHIJKLMNOPQRSTUVWXYZ
default"
Invalid Drive Specified.
There are
bytes free on the "
drive."
g_GetFTime_Click
GetFileTime() takes two parameters, the full path and name of the file
to check and an empty string in which the file's date and time will
be returned. This string should be preset for at least 20 characters
to ensure enough space to house the result.
The function also returns an error value of 0 if successful and a values
other than > 0 if it was not able to find or access the file.
Which file do you wish to check?
Select File"
C:\AUTOEXEC.BAT"
date is "
not found."
Path not found."
Access to
denied.
Unable to Access file.
c_Hidden_Click
IsFileHidden takes one parameter, a string with the full path name
of the file.k
Which file do you wish to check?
Select File"
C:\AUTOEXEC.BAT"
is Hidden."
is not Hidden."
not found."
Path not found."
Access to
denied.
Unable to Access file.
h_LocateFile_Click
FindFile takes 3 parameters:
1) The name of the file you wish to find.e
2) The paths you wish to search as a string of paths separated byE
semicolons (i.e. a typical DOS path)a
3) An empty string to house the returned fully qualified DOS filename.
This should be at least 80 characters in length. If too small, the program
will crash.
Which file do you to find?
Select File"
C:\AUTOEXEC.BAT"
not found."
Full name of "
l_ModArchive_Click
SetFileArchive takes two parameters.
1) A string with the complete path and filename."
2) A single character string with a value of "+" or "-"
A + will set the attribute on.
A - will set the attribute off.
Which file do you to modify?
Select File"
C:\AUTOEXEC.BAT"
Do you wish to turn the attribute on (Y/N)?"
Hide Y/N
is now modified."
not found."
Path not found."
Access to
denied.
Unable to Access file.
i_ModHidden_Click
SetFileHidden takes two parameters.
1) A string with the complete path and filename.
2) A single character string with a value of "+" or "-"
A + will set the attribute on.
A - will set the attribute off.
Which file do you to modify?
Select File"
C:\AUTOEXEC.BAT"
Do you wish to turn the attribute on (Y/N)?"
Hide Y/N
is now modified."
not found."
Path not found."
Access to
denied.
Unable to Access file.
j_ModRO_Click
SetFileRO takes two parameters.
1) A string with the complete path and filename.
2) A single character string with a value of "+" or "-"
A + will set the attribute on.
A - will set the attribute off.
Which file do you to modify?
Select File"
C:\AUTOEXEC.BAT"
Do you wish to turn the attribute on (Y/N)?"
Hide Y/N
is now modified."
not found."
Path not found."
Access to
denied.
Unable to Access file.
k_ModSystem_Click
SetFileSystem takes two parameters.
1) A string with the complete path and filename.
2) A single character string with a value of "+" or "-"
A + will set the attribute on.
A - will set the attribute off.
Which file do you to modify?
Select File"
C:\AUTOEXEC.BAT"
Do you wish to turn the attribute on (Y/N)?"
Hide Y/N
is now modified."
not found."
Path not found."
Access to
denied.
Unable to Access file.
d_ReadOnly_Click
IsFileRO takes one parameter, a string with the full path name
of the file.o
Which file do you wish to check?
Select File"
C:\AUTOEXEC.BAT"
is Read Only"
is not Read Only.
not found."
Path not found."
Access to
denied.
Unable to Access file.
e_Sysfile_Click
IsFileSystem takes one parameter, a string with the full path name
of the file.k
Which file do you wish to check?
Select File"
C:\AUTOEXEC.BAT"
is System."
is not System."
not found."
Path not found."
Access to
denied.
Unable to Access file.
x_ExitMNU_Click